package com.scs.application.modules.base.service;

import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.base.entity.Location;
import com.scs.application.modules.base.entity.LocationLimitMatr;
import com.scs.application.modules.sys.model.RestResult;

/**
 * <p>
 * 库位耗材范围 Service
 * </p>
 */

public interface LocationLimitMatrService extends IBaseService<LocationLimitMatr> {
    /**
     * 根据仓库和耗材选择入库时的默认库位
     *    根据warehouseId和matrId和packageUnit 到location_limit_matr 找，如果没找到，则返回warehouseId 对应的货位
     *
     * @param warehouseId
     * @param matrId
     * @return
     */
    Location getSuitLocation(String warehouseId, String matrId,String packageUnit);

    /**
    * @Description： 库位绑定或者解绑
    */
    RestResult bindOrUnbind(String uniqueCode, String locationCode);


    void deleteByMatrId(String matrId);
}
